package com.zg.scf.domain.req;

import com.zg.common.core.validation.Mobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ScfUserRegisterReq {

    @ApiModelProperty(value = "统一社会信用编码", required = true)
    @NotBlank(message = "【统一社会信用编码】字段不能为NULL")
    private String creditCode;

    @ApiModelProperty(value = "企业名称", required = true)
    @NotBlank(message = "【企业名称】字段不能为NULL")
    private String companyName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "【手机号】字段不能为NULL")
    @Mobile
    private String phone;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "【验证码】字段不能为NULL")
    private String smsCode;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "【用户名】字段不能为NULL")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "【密码】字段不能为NULL")
    private String password;

    @ApiModelProperty(value = "确认密码", required = true)
    @NotBlank(message = "【确认密码】字段不能为NULL")
    private String confirmPassword;
}
